package com.itheima.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestApp {
    public static void main(String[] args) {
        ApplicationContext apc = new ClassPathXmlApplicationContext("applicationContext.xml");
        BookService book = apc.getBean("BookService", BookService.class);
        book.read();
    }
}
